home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / CMAcceleration.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  4.3 KB  |  143 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMAcceleration.p
  3.  
  4.      Contains:    ColorSync 2.0 Acceleration Component Interfaces
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT CMAcceleration;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __CMACCELERATION__}
  30. {$SETC __CMACCELERATION__ := 1}
  31.  
  32. {$I+}
  33. {$SETC CMAccelerationIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __MEMORY__}
  38. {$I Memory.p}
  39. {$ENDC}
  40. {    Types.p                                                        }
  41. {        ConditionalMacros.p                                        }
  42. {    MixedMode.p                                                    }
  43.  
  44. {$IFC UNDEFINED __COMPONENTS__}
  45. {$I Components.p}
  46. {$ENDC}
  47.  
  48. {$IFC UNDEFINED __CMAPPLICATION__}
  49. {$I CMApplication.p}
  50. {$ENDC}
  51. {    Quickdraw.p                                                    }
  52. {        QuickdrawText.p                                            }
  53. {    Files.p                                                        }
  54. {        OSUtils.p                                                }
  55. {        Finder.p                                                }
  56. {    Printing.p                                                    }
  57. {        Errors.p                                                }
  58. {        Dialogs.p                                                }
  59. {            Menus.p                                                }
  60. {            Controls.p                                            }
  61. {            Windows.p                                            }
  62. {                Events.p                                        }
  63. {            TextEdit.p                                            }
  64. {    CMICCProfile.p                                                }
  65.  
  66. {$PUSH}
  67. {$ALIGN MAC68K}
  68. {$LibExport+}
  69.  
  70. CONST
  71.     cmAccelerationInterfaceVersion = 1;
  72.  
  73. {–––––––––––––––––––––––––––––––––––––– Component Type}
  74.     cmAccelerationComponentType    = 'csac';
  75.  
  76. {–––––––––––––––––––––––––––––––––––––– Required Component function selectors}
  77.     cmLoadTables                = 0;
  78.     cmCalculateData                = 1;
  79.  
  80. {–––––––––––––––––––––––––––––––––––––– table data for acceleration component}
  81.  
  82. TYPE
  83.     CMAccelerationTableData = RECORD
  84.         inputLutEntryCount:        LONGINT;                                { count of entries for input lut for one dimension}
  85.         inputLutWordSize:        LONGINT;                                { count of bits of each entry ( e.g. 16 for WORD )}
  86.         inputLut:                Handle;                                    { handle to input lut}
  87.         outputLutEntryCount:    LONGINT;                                { count of entries for output lut for one dimension    }
  88.         outputLutWordSize:        LONGINT;                                { count of bits of each entry ( e.g. 8 for BYTE )}
  89.         outputLut:                Handle;                                    { handle to output lut}
  90.         colorLutInDim:            LONGINT;                                { input dimension  ( e.g. 3 for LAB ; 4 for CMYK )}
  91.         colorLutOutDim:            LONGINT;                                { output dimension ( e.g. 3 for LAB ; 4 for CMYK )}
  92.         colorLutGridPoints:        LONGINT;                                { count of gridpoints for color lut ( for one Dimension )    }
  93.         colorLutWordSize:        LONGINT;                                { count of bits of each entry ( e.g. 8 for BYTE )}
  94.         colorLut:                Handle;                                    { handle to color lut}
  95.         inputColorSpace:        CMBitmapColorSpace;                        { packing info for input}
  96.         outputColorSpace:        CMBitmapColorSpace;                        { packing info for output}
  97.         userData:                Ptr;
  98.         reserved1:                LONGINT;
  99.         reserved2:                LONGINT;
  100.         reserved3:                LONGINT;
  101.         reserved4:                LONGINT;
  102.         reserved5:                LONGINT;
  103.     END;
  104.  
  105.     CMAccelerationTableDataPtr = ^CMAccelerationTableData;
  106.     CMAccelerationTableDataHdl = ^CMAccelerationTableDataPtr;
  107.  
  108. {–––––––––––––––––––––––––––––––––––––– calc data for acceleration component}
  109.     CMAccelerationCalcData = RECORD
  110.         pixelCount:                LONGINT;                                { count of input pixels}
  111.         inputData:                Ptr;                                    { input array}
  112.         outputData:                Ptr;                                    { output array}
  113.         reserved1:                LONGINT;
  114.         reserved2:                LONGINT;
  115.     END;
  116.  
  117.     CMAccelerationCalcDataPtr = ^CMAccelerationCalcData;
  118.     CMAccelerationCalcDataHdl = ^CMAccelerationCalcDataPtr;
  119.  
  120. {————————————————————————————————————————————————————————————————————————————————————————————————}
  121. {                A c c e l e r a t i o n   C o m p o n e n t   I n t e r f a c e s}
  122. {————————————————————————————————————————————————————————————————————————————————————————————————}
  123.  
  124. FUNCTION CMAccelerationLoadTables(CMSession: ComponentInstance; tableData: CMAccelerationTableDataPtr): CMError;
  125.     {$IFC NOT GENERATINGCFM}
  126.     INLINE $2F3C, $0004, $0000, $7000, $A82A;
  127.     {$ENDC}
  128. FUNCTION CMAccelerationCalculateData(CMSession: ComponentInstance; calcData: CMAccelerationCalcDataPtr): CMError;
  129.     {$IFC NOT GENERATINGCFM}
  130.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  131.     {$ENDC}
  132.  
  133. {$ALIGN RESET}
  134. {$POP}
  135.  
  136. {$SETC UsingIncludes := CMAccelerationIncludes}
  137.  
  138. {$ENDC} {__CMACCELERATION__}
  139.  
  140. {$IFC NOT UsingIncludes}
  141.  END.
  142. {$ENDC}
  143.